import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { RouterModule } from '@angular/router';

import { Studyng6SharedModule } from '../../shared';
import {
    BookBasicService,
    BookBasicPopupService,
    BookBasicComponent,
    BookBasicDetailComponent,
    BookBasicDialogComponent,
    BookBasicPopupComponent,
    BookBasicDeletePopupComponent,
    BookBasicDeleteDialogComponent,
    bookBasicRoute,
    bookBasicPopupRoute,
    BookBasicResolvePagingParams,
} from './';

const ENTITY_STATES = [
    ...bookBasicRoute,
    ...bookBasicPopupRoute,
];

@NgModule({
    imports: [
        Studyng6SharedModule,
        RouterModule.forChild(ENTITY_STATES)
    ],
    declarations: [
        BookBasicComponent,
        BookBasicDetailComponent,
        BookBasicDialogComponent,
        BookBasicDeleteDialogComponent,
        BookBasicPopupComponent,
        BookBasicDeletePopupComponent,
    ],
    entryComponents: [
        BookBasicComponent,
        BookBasicDialogComponent,
        BookBasicPopupComponent,
        BookBasicDeleteDialogComponent,
        BookBasicDeletePopupComponent,
    ],
    providers: [
        BookBasicService,
        BookBasicPopupService,
        BookBasicResolvePagingParams,
    ],
    schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class Studyng6BookBasicModule {}
